# Since the ".env" file is gitignored, you can use the ".env.example" file to
# build a new ".env" file when you clone the repo. Keep this file up-to-date
# when you add new variables to `.env`.

# This file will be committed to version control, so make sure not to have any
# secrets in it. If you are cloning this repo, create a copy of this file named
# ".env" and populate it with your secrets.

# Traefik
DOMAIN=localhost
EMAIL=admin@localhost
CERT_RESOLVER=letsencrypt

# PGAdmin
PGADMIN_EMAIL=admin@localhost
PGADMIN_PASSWORD=

# Next.js
NEXT_TELEMETRY_DISABLED=1

# When adding additional environment variables, the schema in "/src/env.mjs"
# should be updated accordingly.

# Prisma
# https://www.prisma.io/docs/reference/database-reference/connection-urls#env
POSTGRES_DB=lost_and_found_db
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_HOST=localhost
DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:5432/${POSTGRES_DB}

# @next/bundle-analyzer package in next.config.mjs
# Always false for production
ANALYZE=false

# next-pwa package in next.config.mjs
# true for PWA development
# Always false for production
DISABLE_PWA=false

# S3
# Allow upload only resources *.png, *.jpg, *.jpeg, *.gif, *.webp, add to NEXT_PUBLIC_S3_UPLOAD_RESOURCE_FORMATS
# Access rules:
# GetObject, PutObject with key access
# GetObject for all
S3_UPLOAD_KEY=
S3_UPLOAD_SECRET=
S3_UPLOAD_BUCKET=
S3_UPLOAD_HOSTNAME=storage.yandexcloud.net
S3_UPLOAD_ENDPOINT_URL=https://${S3_UPLOAD_HOSTNAME}
NEXT_PUBLIC_CDN_ENDPOINT_URL=https://${S3_UPLOAD_BUCKET}.${S3_UPLOAD_HOSTNAME}
S3_UPLOAD_REGION=ru-central1
NEXT_PUBLIC_S3_UPLOAD_RESOURCE_FORMATS=.png,.jpg,.jpeg,.gif,.webp

# Open AI for image generation
OPENAI_API_KEY=

# @upstash/ratelimit for Open AI API
UPSTASH_REDIS_REST_URL=
UPSTASH_REDIS_REST_TOKEN=

# Next Auth
# You can generate a new secret on the command line with:
# openssl rand -base64 32
# https://next-auth.js.org/configuration/options#secret
NEXTAUTH_SECRET=
NEXTAUTH_URL=http://localhost:3000
NEXT_PUBLIC_NEXTAUTH_URL=${NEXTAUTH_URL}

# Next Auth Mirea Ninja Provider
MIREA_CLIENT_ID=
MIREA_CLIENT_SECRET=

# Next Auth Google Provider
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

# Next Auth Github Provider
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
